package domain.entities;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created with IntelliJ IDEA.
 * User: Guillermo
 * Date: 11/09/12
 * Time: 11:42
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "protocolleveldocumentation_category", catalog = "bms")
public class ProtocolLevelDocumentationCategory implements java.io.Serializable{

    private Integer id;
    private String descripcion;

    public ProtocolLevelDocumentationCategory() {
    }

    public ProtocolLevelDocumentationCategory(String descripcion) {
        this.descripcion = descripcion;
    }

    public ProtocolLevelDocumentationCategory(Integer id, String descripcion) {
        this.id = id;
        this.descripcion = descripcion;
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "descripcion")
    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }
}
